package lab02.test06;

public class Test06 {

    public static void main(String[] args) {

        //测试三角形
        Triangle triangle = new Triangle();

        triangle.a = 3;
        triangle.b = 4;
        triangle.c = 5;
        System.out.println(triangle.isTriangle());
        System.out.println(triangle.toString());
        //修改三角形的三边
        triangle.alter();
        System.out.println(triangle.isTriangle());
        System.out.println(triangle.toString());

        //测试梯形
        Ladder ladder = new Ladder();

        ladder.top = 3;
        ladder.bottom = 5;
        ladder.high = 4;
        System.out.println(ladder.toString());

        //测试圆
        Circle circle = new Circle();
        circle.r = 2;
        System.out.println(circle.toString());

    }
}
